import React,{Component} from 'react';
class Father extends Component {
    render(){
        return (
            <div onClick={this.handleClick.bind(this)}>
                {this.props.content}
            </div>
        )
    }
    //子组件向父组件传值
    handleClick(){
        console.log('aaa')
        this.props.message('aa')
    }
}
export default Father;